package com.cf.society_management.mapper;

import com.cf.society_management.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    // 根据ID查询用户
    User findById(int id);

    // 根据用户名查询用户
    User findByUsername(@Param("account") String account);

    // 保存用户
    void save(User user);
}
